<!DOCTYPE html>  
<html lang="zh-CN">
	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
		<meta name="format-detection" content="telephone=no" />
		<meta name="format-detection" content="email=no" />
		<meta name="x5-orientation" content="portrait">
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta name="apple-mobile-web-app-status-bar-style" content="black" />
		<title>超级搜券</title>
<tqkcss href="__STATIC__/wap/css/amazeui.min.css,__STATIC__/wap/css/style.css,http://at.alicdn.com/t/font_725800_gddxl760937.css"/>
	</head>
	<body class="wbg am-with-fixed-navbar">
		<div class="so-top">
			<a href="javascript:history.go(-1);" class="iconfont tqk-fanhui back"></a>
			<img src="__STATIC__/wap/images/so/so_top.png" width="100%"/>
			<form action="" method="post" id="so">
				<div class="so-top-box">
	    			<span class="iconfont tqk-search"></span>
				  <input type="text" required="required" value="{$key}" name="key" id="search"  placeholder="请粘贴手淘分享内容或淘宝商品标题">
				</div>
				<button type="submit" class="so-top-btn">搜索</button>
			</form>
		</div>
		
<if condition="$result eq 'yes' ">

<div class="container list ">
		   		
		   			
<volist id="val" name="list">
		   			<div class="am-padding-top-sm">
	   					<div class="list-pic">
	   						<a href="javascript:;" data-quanurl="{$val.coupon_click_url}"  data-rate="{$val.commission_rate}"  data-quanid="{$val.Quan_id}"  data-quan="{$val.quan}" class="jumpto" data-numid="{$val.num_iid}">
		   					<img src="{$val.pic_url}_220x220.jpg" width="100" height="100"/>
		   					</a>
		   					<span class="goods-mask">已售{$val.volume}件</span>
		   				</div>
	   					<div class="list-content am-margin-right-sm">
	   						<div class="am-cf am-margin-bottom-sm">
		   						<i class="icon-type tmall"></i>
					            <p class="goods-name"><a href="javascript:;" data-quanurl="{$val.coupon_click_url}" data-rate="{$val.commission_rate}"  data-quanid="{$val.Quan_id}"  data-quan="{$val.quan}" class="jumpto c-333 ellipsis-2" data-numid="{$val.num_iid}">{$val.tongkuan}{$val.title}</a></p> 							
	   						</div>
	   						<div class="am-cf am-margin-bottom-xs">
	   							<div class="am-fl">
	   								<div class="coupon-main am-fl am-margin-right-xs"><p>省￥{$val.quan}</p></div>
	   								<p class="f-12 c-999 lh-22 am-fl">现价 ¥{$val['coupon_price']+$val['quan']}</p>
	   								 
	   								
	   							</div>
	   							<if condition="$visitor">
	   								<p class="f-12 c-999 lh-22 am-fr"> 预计返 ¥
	   										{:Rebate1($vo['coupon_price']*$vo['commission_rate']/10000)}
	   									</p>
	   								</if>
	   							
	   						</div>
	   						<div class="am-cf am-margin-bottom-xs">
	   							<div class="am-fl"><h4 class="am-text-lg maincolor am-fl am-margin-right-xs"><span class="f-12">¥</span>{$val.coupon_price}</h4><p class="f-12 c-666 lh-32 am-fl">券后</p></div>
	   							<div class="am-fr">
	   								<a href="javascript:;" data-quanurl="{$val.coupon_click_url}" data-rate="{$val.commission_rate}"   data-quanid="{$val.Quan_id}"  data-quan="{$val.quan}" data-numid="{$val.num_iid}" class="jumpto btn btn-main radius btn-sm">立即抢购</a>
	   							</div>
	   						</div>
	   					</div>
		   			</div>
</volist>

<if condition="$status eq 'no'">
<div class="empty">
	<img src="__STATIC__/wap/images/icon/empty.png" class="icon-empty"/>
	<p class="f-14 c-999">抱歉！没有找到此商品的优惠信息。</p>
</div>
</if>		   			
		
		   		
		   	</div>
		
		
		
	<else/>
		<h4 class="so-explain">商品查券 教程说明</h4>
		<div class="am-text-center">
			<div class="so-title">
	    		<p>如何查找淘宝/天猫商品是否有券？</p>
	    	</div>
		</div>
	    <div class="so-step">
	    	<img src="__STATIC__/wap/images/so/so_step_1.png" width="100%"/>
	    	<img src="__STATIC__/wap/images/so/so_step_2.png" width="100%"/>
	    	<img src="__STATIC__/wap/images/so/so_step_3.png" width="100%"/>
	    	<img src="__STATIC__/wap/images/so/so_step_4.png" width="100%"/>
	    	<img src="__STATIC__/wap/images/so/so_step_5.png" width="100%"/>
	    	<img src="__STATIC__/wap/images/so/so_step_6.png" width="100%"/>
	    </div>
	    <a href="javascript:;" class="so-btn"><img src="__STATIC__/wap/images/so/so_btn.png" width="100%"/></a>
	   	</if>  
	    <tqkjs href="__STATIC__/wap/js/jquery.min.js"/> 
	     <include file="Public:footer" />	
	   <script type="text/javascript">
	  $(function(){
	  $('.jumpto').on('click',function(){
	  var num_id=$(this).attr('data-numid');
	  var quan=$(this).attr('data-quan');
	  var quanurl=$(this).attr('data-quanurl');
	  var quanid=$(this).attr('data-quanid');
	   var rate=$(this).attr('data-rate');
	  var trackurl='{$trackurl}';
	  $.ajax({
	  	type:"post",
	  	data:{numid:num_id,quan:quan,quanurl:quanurl,quanid:quanid,commission_rate:rate},
	  	url:"{:U('jumpto/jumpclick')}",
	  	dataType: 'json',
	  	success:function(json){
	  		if(json.status==1){
	  			window.location.href=json.urls+trackurl;
	  		}
	  	}
	  });
	  	
	  });
	  })
	    	
	    </script>
    </body>
</html>